/**
 *@Description: 路由列表
 *@author: Wangsenyang
 *@Date: 2020/4/27
 */

// import routerFactory from './routerFactory'

import Layout from '@/views/layout/Layout';

const _import = require(`./_import_${process.env.NODE_ENV}`); // eslint-disable-line

const Info = { template: '<router-view></router-view>' };

const routes = [{
    path: '',
    component: Layout,
    redirect: '/home',
    children: [
      {
        path: '/home',
        name: 'home',
        component: _import('home/index'),
        meta: { menuShow: true, menuName: '首页' },
      },
      {
        path: '/monitor',
        component: _import('monitor/Index'),
        name: 'monitor',
        meta: {
          menuShow: true,
          menuName: '任务调度',
        },
      },
      {
        path: '/accessStatementAccount',
        component: _import('accessStatementAccount/accessReconciliation'),
        name: 'accessStatementAccount',
        meta: {
          menuShow: true,
          menuName: '数据对账',
        },
      },
      {
        path: '/AccessMonitorSurvey',
        component: _import('AccessMonitorSurvey/index'),
        name: 'accessMonitorSurvey',
        meta: {
          menuShow: true,
          menuName: '任务详情',
        },
      },
    ],
  },
    {
      path: '/login',
      name: 'login',
      component: _import('login'),
      meta: { menuShow: false, menuName: '登录' },
    },
]

export default routes;
